package mini.ideashare.cms.model;

import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

public class TB_Item {
    //自增id
    private Long id;
    //目录分类id
    private Long categoryId;
    //店铺名称
    private String shopName;
    //淘宝商品Id
    private String skuId;
    //淘宝商品名称
    private String skuName;
    //商品描述
    private String skuDesc;
    //促销链接
    private String promotionLink;
    //商品主图
    private String skuImage;
    //原价
    private BigDecimal originalPrice;
    //收入比例
    private BigDecimal incomeRate;
    //优惠券面值
    private BigDecimal couponValue;
    //促销价
    private BigDecimal promotionPrice;
    //优惠券数量
    private Integer couponCount;
    //优惠券剩余数量
    private Integer couponRemain;
    //优惠可始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    //优惠结束时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    //优惠券链接
    private String couponLink;
    //创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    //创建人
    private String creator;

    public Long getId() {
        return id;
    }

    public TB_Item setId(Long id) {
        this.id = id;
        return this;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public TB_Item setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
        return this;
    }

    public String getShopName() {
        return shopName;
    }

    public TB_Item setShopName(String shopName) {
        this.shopName = shopName;
        return this;
    }

    public String getSkuId() {
        return skuId;
    }

    public TB_Item setSkuId(String skuId) {
        this.skuId = skuId;
        return this;
    }

    public String getSkuName() {
        return skuName;
    }

    public TB_Item setSkuName(String skuName) {
        this.skuName = skuName;
        return this;
    }

    public String getSkuDesc() {
        return skuDesc;
    }

    public TB_Item setSkuDesc(String skuDesc) {
        this.skuDesc = skuDesc;
        return this;
    }

    public String getPromotionLink() {
        return promotionLink;
    }

    public TB_Item setPromotionLink(String promotionLink) {
        this.promotionLink = promotionLink;
        return this;
    }

    public String getSkuImage() {
        return skuImage;
    }

    public TB_Item setSkuImage(String skuImage) {
        this.skuImage = skuImage;
        return this;
    }

    public BigDecimal getOriginalPrice() {
        return originalPrice;
    }

    public TB_Item setOriginalPrice(BigDecimal originalPrice) {
        this.originalPrice = originalPrice;
        return this;
    }

    public BigDecimal getIncomeRate() {
        return incomeRate;
    }

    public TB_Item setIncomeRate(BigDecimal incomeRate) {
        this.incomeRate = incomeRate;
        return this;
    }

    public BigDecimal getCouponValue() {
        return couponValue;
    }

    public TB_Item setCouponValue(BigDecimal couponValue) {
        this.couponValue = couponValue;
        return this;
    }

    public BigDecimal getPromotionPrice() {
        return promotionPrice;
    }

    public TB_Item setPromotionPrice(BigDecimal promotionPrice) {
        this.promotionPrice = promotionPrice;
        return this;
    }

    public Integer getCouponCount() {
        return couponCount;
    }

    public TB_Item setCouponCount(Integer couponCount) {
        this.couponCount = couponCount;
        return this;
    }

    public Integer getCouponRemain() {
        return couponRemain;
    }

    public TB_Item setCouponRemain(Integer couponRemain) {
        this.couponRemain = couponRemain;
        return this;
    }

    public Date getStartTime() {
        return startTime;
    }

    public TB_Item setStartTime(Date startTime) {
        this.startTime = startTime;
        return this;
    }

    public Date getEndTime() {
        return endTime;
    }

    public TB_Item setEndTime(Date endTime) {
        this.endTime = endTime;
        return this;
    }

    public String getCouponLink() {
        return couponLink;
    }

    public TB_Item setCouponLink(String couponLink) {
        this.couponLink = couponLink;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public TB_Item setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getCreator() {
        return creator;
    }

    public TB_Item setCreator(String creator) {
        this.creator = creator;
        return this;
    }
}
